<template>
	<view class="wdwy-detail">
		<view class="normal-cell main-pd">
			<view class="msg-cell">
				<u-cell-group :border="false">
					<u-cell title="物业名称" :value="wyMsg.wyName"></u-cell>
					<u-cell title="社会信用代码" :value="wyMsg.shxydm"></u-cell>
					<u-cell title="物业等级" :value="wyMsg.wyLevle"></u-cell>
					<u-cell title="管理小区" :value="wyMsg.deptName"></u-cell>
					<u-cell title="负责人姓名" :value="wyMsg.fzrxm"></u-cell>
					<u-cell title="联系方式" :value="wyMsg.tel"></u-cell>
					<u-cell title="服务热线" :value="wyMsg.fwrx"></u-cell>
					<u-cell title="服务时间" :value="wyMsg.fwsj"></u-cell>
					<u-cell title="物业简介" :border="false">
						<template #label>
							<u-parse :content="wyMsg.wyjj"></u-parse>
						</template>
					</u-cell>
				</u-cell-group>
			</view>
			<view class="u-m-t-32">
				<HeadTitle title="服务人员" fontWeight="600" iconColor="#F34B47" fontSize="32rpx" />
			</view>
			<view class="u-m-t-20">
				<view class="u-card u-m-b-20" v-for="(item,index) in wyMsg.fwryxx" :key="index">
					<view class="u-flex u-flex-between">
						<view class="font-32 color-000"> {{item.ryname||'' }} </view>
						<view class="font-28 color-333"> {{item.job ||''}} </view>
					</view>
					<view class="u-flex u-flex-between u-p-t-16">
						<view class="font-28 color-333"> {{item.age || ''}}岁 </view>
						<view class="font-28 color-333">
							<view class="u-flex">
								<u-icon size="16" name="phone"></u-icon>
								<text>{{item.tel ||''}}</text>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
import {ref} from "vue"
import HeadTitle from "@/components/HeadTitle.vue";
import { getmyWyApi } from "@/api/index"
import useInfoStore from "@/store/user"
import {onLoad} from "@dcloudio/uni-app"
const userStore = useInfoStore()
let wyMsg = ref({})
const getmyWyHandle = ()=>{
	getmyWyApi({deptId: userStore.deptId}).then(res => {
		if(res.success){
			wyMsg.value = res.data
		}
	})
}
onLoad(()=>{
	getmyWyHandle()
})
</script>

<style lang="scss" scoped>
.wdwy-detail {
	padding-top: 28rpx;
	padding-bottom: 100rpx;
	.msg-cell {
		background-color: #fff;
		border-radius: 12rpx;
		padding: 0 30rpx;
	}
}
</style>
